<%@ page contentType="text/html; charset=UTF-8"  %>
<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt' %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>Sign On</title>
    <link type="text/css" href="<%=path %>/content/styles/default.css" rel="stylesheet"/> 
</head>
<body>
<div align="center">
	<a href="<%=basePath %>/login/LoginInput.action" title="LDBS">
		<img border="0" width="217" height="90" alt="welcome" src="<%=path %>/content/images/logo_ss.jpg" />
	</a>
</div>
<br/>
<div align="center">
<form action="<c:url value='j_spring_security_check'/>">
<!-- 
<s:form action="Login" namespace="/login">
 -->
	<table  cellspacing="1" align="center"  class="width50">
		<!--%{#request.contextPath} 错误信息-->
		<tr>
			<td colspan="2" class="error" >
				<!-- <s:actionmessage/> -->
			</td>
		</tr>
		<tr>
			<td colspan="2" class="form-title">
				<!-- <s:text name="login"></s:text> -->
			</td>
		</tr>
		<!-- 用户ID值 -->
		<tr class="row-1">
			<td class="category" width="25%"><s:text name="userid"></s:text></td>
			<td width="75%">
				<input type='text' name='j_username' value='${SPRING_SECURITY_LAST_USERNAME}'/>
			</td>
        </tr>
        <!-- 用户密码 -->
        <tr class="row-2">
        	<td class="category" width="25%"><s:text name="password"></s:text></td>
        	<td width="75%">
        		<input type='password' name='j_password'/>
        	</td>
        </tr>
        <!-- 语言选择 -->
        <tr  class="row-1">
        	<td class="category" width="25%">语言选择</td>
        	<td width="75%">
        	</td>
        </tr>
        <!-- 保存此次登录 -->
        <tr  class="row-2">
        	<td class="category" width="25%"><s:text name="login.rember.this.login"/></td>
        	<td width="75%"></td>
        </tr>
       	<!-- 提交按钮 -->
		<tr>
			<td class="center"></td>
			<td class="left"><input type="submit"  value="<s:text name="login"/>"></td>
		</tr>
    </table>
<!-- 
</s:form>
 -->
</form>
</div>
<br/>   <!-- 超连接 -->
        <div align="center">
        	<span class="bracker-link">[&nbsp;<a href="<%=path %>/login/Register.action"><s:text name="register"></s:text></a>&nbsp;]</span>&nbsp;
        	<span class="bracker-link">[&nbsp;<a href="<%=path %>/login/ForgetPassword.action"><s:text name="login.forget.password"></s:text></a>&nbsp;]</span>
        </div>
</body>
</html>
